<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditFareRulesTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditFareRulesLabel_fureRulesId}" for="fureRulesId" />
                    <h:inputText id="fureRulesId" value="#{fareRulesController.selected.fureRulesId}" title="#{bundle.EditFareRulesTitle_fureRulesId}" required="true" requiredMessage="#{bundle.EditFareRulesRequiredMessage_fureRulesId}"/>
                    <h:outputLabel value="#{bundle.EditFareRulesLabel_fareId}" for="fareId" />
                    <h:inputText id="fareId" value="#{fareRulesController.selected.fareId}" title="#{bundle.EditFareRulesTitle_fareId}" required="true" requiredMessage="#{bundle.EditFareRulesRequiredMessage_fareId}"/>
                    <h:outputLabel value="#{bundle.EditFareRulesLabel_routeId}" for="routeId" />
                    <h:inputText id="routeId" value="#{fareRulesController.selected.routeId}" title="#{bundle.EditFareRulesTitle_routeId}" />
                    <h:outputLabel value="#{bundle.EditFareRulesLabel_originId}" for="originId" />
                    <h:inputText id="originId" value="#{fareRulesController.selected.originId}" title="#{bundle.EditFareRulesTitle_originId}" />
                    <h:outputLabel value="#{bundle.EditFareRulesLabel_destinationId}" for="destinationId" />
                    <h:inputText id="destinationId" value="#{fareRulesController.selected.destinationId}" title="#{bundle.EditFareRulesTitle_destinationId}" />
                    <h:outputLabel value="#{bundle.EditFareRulesLabel_containsId}" for="containsId" />
                    <h:inputText id="containsId" value="#{fareRulesController.selected.containsId}" title="#{bundle.EditFareRulesTitle_containsId}" />
                </h:panelGrid>
                <h:commandLink action="#{fareRulesController.update}" value="#{bundle.EditFareRulesSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditFareRulesViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{fareRulesController.prepareList}" value="#{bundle.EditFareRulesShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditFareRulesIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
